package adsi.persistence;

public class DataServiceSearchCriterias {
    private int value;
    private transient String name;
    
    public static final DataServiceSearchCriterias CREATION_DATES = new DataServiceSearchCriterias(0, "FechaAlta");
    public static final DataServiceSearchCriterias DELETION_DATES = new DataServiceSearchCriterias(1, "FechaBaja");
    public static final DataServiceSearchCriterias AVAILABLE_DATES = new DataServiceSearchCriterias(2, "FechaDisponibilidadEquipo");
    public static final DataServiceSearchCriterias FREE_DATES = new DataServiceSearchCriterias(3, "FechasLibres");
    public static final DataServiceSearchCriterias BUSY_DATES = new DataServiceSearchCriterias(4, "FechasOcupadas");

    private DataServiceSearchCriterias(int value, String name) {
        this.value = value;
        this.name = name;
    }
    
    public int getValue()
    {
        return value;
    }
    
    public String toString()
    {
        return name;
    }
    
    public boolean equals (Object o) {
        return (value == ((DataServiceSearchCriterias) o).value);
    }
}
